package org.example.enums;

public enum ETaskStatus {

    INIT(0,"init"),

    RUNNING(1,"running"),

    CANCELING(2,"canceling"),

    CANCELED(3,"canceled"),

    SUCCESS(4,"success"),

    FAIL(5,"fail");

    private String status;
    private int code;

    ETaskStatus(int code,String status) {
        this.code = code;
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getCode() {
        return code;
    }
}
